<template>
  <div class="recommend">
    <div class="recommend-item" v-for="item in recommends" :key="item.id">
      <img v-lazy="item.image" />
      <div class="title">{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommends: Array
  }
}
</script>

<style scoped>
.recommend {
  display: flex;
}
.recommend-item {
  flex: 1;
  text-align: center;
}
img {
  width: 70%;
}
.title {
  font-size: 12px;
  line-height: 30px;
  color: var(--gray-moderate);
}
</style>
